//
//  ButtonScrollView.m
//  口袋
//
//  Created by dllo on 15/5/19.
//  Copyright (c) 2015年 口袋. All rights reserved.
//

#import "ButtonScrollView.h"
#import "TouchScrollView.h"

#define WIDTH self.frame.size.width
#define HEIGHT self.frame.size.height

@implementation ButtonScrollView

- (void)dealloc
{
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
//        [self createView];
    }
    return self;
}

- (void)createView
{
    UIButton * choose = [[UIButton alloc] initWithFrame:CGRectMake(WIDTH - 50, 0, 50, HEIGHT)];
    choose.backgroundColor = [UIColor purpleColor];
    [choose addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:choose];
    [choose release];
    
    TouchScrollView * buttonScroll = [[TouchScrollView alloc] initWithFrame:CGRectMake(0, 0, WIDTH - 50, HEIGHT)];
    buttonScroll.backgroundColor = [UIColor lightGrayColor];
    [self addSubview:buttonScroll];
    [buttonScroll release];
    
}

#pragma mark -点击分类专栏按钮事件
//- (void)buttonAction:(id)sender
//{
//    
//}



@end
